let fn=expand('%:p')
let fl=getfsize(fn)
if 0==fl || (-1==fl && 1==line('$') && 0==get(getbufline('.', '$'), 0))
	let s=system('which python 2>/dev/null')
	if ''!=s
		set fenc=utf-8 "bomb/nobomb
		let s=strpart(s, 0, strlen(s)-1)
		let s='#!'.s
		call append(0, s)
		"call append(1, '#coding=UTF-8')
		call append(1, '#-*- coding:utf-8 -*-')
		"let sComment='#vim: set fileencoding=utf-8'
		let sComment='#vim:fileencoding=utf-8'
		call append(2, sComment)
		call append(3, '')
	endif
endif

if exists("b:ft_python_hx") | finish | endif
let b:ft_python_hx=1

setl fdm=indent
